<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>统计鼠标单击按钮的次数</title>
<script src="../JS/vue.js"></script>
</head>
<body>
<div id="box">
	<button v-on:click="count++">计数</button>
	<p>按钮被单击{{count}}次</p>
</div>
<script type="text/javascript">
    var vm = new Vue({
        el : '#box',
		data : {
			count : 0
		}
    });
</script>


</body>

</html>



